package com.zby.filter.util;

import com.zby.filter.util.core.StringHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created By zby on 20:39 2019/2/13
 */

public class MethodHelper {

    private static Logger logger = LoggerFactory.getLogger(MethodHelper.class);

    /**
     * Created By zby on 20:44 2019/2/13
     * 将属性转化为get方法
     *
     * @param props 属性名称
     */
    public static String propsToGetMethod(String props) {
        if (StringHelper.isBlank(props))
            return null;
        return "get" + props.substring(0, 1).toUpperCase() + props.substring(1);
    }

}
